package com.usian.stock.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.stock.mapper.StockMapper;
import com.usian.stock.model.Stock;
import com.usian.stock.service.StockService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/11 14:32
 */
@Service
public class StockServiceImpl extends ServiceImpl<StockMapper,Stock> implements StockService {

    @Override
    @Transactional
    public void updateStock(Stock stock){
        this.baseMapper.updateById(stock);
        int a = 1/0;

    }
}
